package com.xmtlxx.wms.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import com.xmtlxx.wms.domain.vo.InventoryDtlVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 盘点计划业务对象 t_inventory_plan
 *
 * @author xmtlxx
 * @date 2022-08-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("盘点计划业务对象")
public class InventoryPlanBo extends BaseEntity {

    /**
     * 盘点id
     */
    @ApiModelProperty(value = "盘点id")
    private String id;

    /**
     * 单号
     */
    @ApiModelProperty(value = "单号", required = true)
    @NotBlank(message = "单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inventoryNo;

    /**
     * 仓库id
     */
    @ApiModelProperty(value = "仓库id", required = true)
    @NotBlank(message = "仓库id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeId;

    /**
     * 盘点人
     */
    @ApiModelProperty(value = "盘点人", required = true)
    @NotBlank(message = "盘点人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inventoryUser;

    /**
     * 经办人
     */
    @ApiModelProperty(value = "经办人")
    private String operator;

    /**
     * 经办时间
     */
    @ApiModelProperty(value = "经办时间")
    private Date operateTime;

    /**
     * 审核人
     */
    @ApiModelProperty(value = "审核人")
    private String checker;

    /**
     * 审核状态
     */
    @ApiModelProperty(value = "审核状态")
    private String checkStatus;

    /**
     * 审核时间
     */
    @ApiModelProperty(value = "审核时间")
    private Date checkTime;

    /**
     * 审核备注
     */
    @ApiModelProperty(value = "审核备注")
    private String checkMemo;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id", required = true)
    @NotNull(message = "部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 账面数量
     */
    @ApiModelProperty(value = "账面数量")
    private Long books;

    /**
     * 盘点数量
     */
    @ApiModelProperty(value = "盘点数量")
    private Long nums;

    /**
     * 盘点结果
     */
    @ApiModelProperty(value = "盘点结果")
    private Long results;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    private String pics;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;

    /**
     * 计划开始时间
     */
    @ApiModelProperty("计划开始时间")
    private Date planTime;

    /**
     * 监盘人
     */
    @ApiModelProperty("监盘人")
    private Long watcherId;

    /**
     * 派单人
     */
    @ApiModelProperty("派单人")
    private Long dispatcherId;

    /**
     * 类型 0-计划 1-结果
     */
    @ApiModelProperty("类型 0-计划 1-结果")
    private String type;

    /**
     * 关联计划id
     */
    @ApiModelProperty("关联计划id")
    private String rid;

    private List<InventoryDtlVo> items;


    /**
     * 搜索条件
     */
    private String pno;
    private String pname;
    private String areaId;
    private String cabinetGroupId;
    private String cabinetId;
    private String region;
    private List<String> regions;
    /**
     * 层数
     */
    private String floors;
    private String locators;
    private String[] locatorIds;

    private String areaName;

    private String inventoryType;

}
